import Vue from "vue";
import Router from "vue-router";

const rushGame = resolve =>
  require(["@/components/rushGame/index.vue"], resolve);
const rushPerson = resolve =>
  require(["@/components/rushGame/Person.vue"], resolve);
const rushOrder = resolve =>
  require(["@/components/rushGame/Order.vue"], resolve);

Vue.use(Router);

export default new Router({
  mode: "history",
  base: "/wechat/",
  routes: [
    {
      path: "/",
      name: "rushGame",
      component: rushGame
    },
    {
      path: "/rushGame",
      name: "rushGame",
      component: rushGame
    },
    {
      path: "/rushPerson",
      name: "rushPerson",
      component: rushPerson
    },
    {
      path: "/rushOrder",
      name: "rushOrder",
      component: rushOrder
    }
  ]
});
